package com.zjxf.base.bean.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商家端用户vo
 *
 * @author ZhangWei
 * @date 2021/3/26/026 15:48
 */
public class VoUmsStoreSeller {

    @Getter
    @Setter
    public static class login {

        /**
         * 用户名
         */
        @NotBlank(message = "请输入用户名")
        private String username;

        /**
         * 密码
         */
        @NotBlank(message = "请输入密码")
        private String password;

        /**
         * 登录类型
         */
        @NotNull(message = "请选择登录类型")
        private Integer type;

        /**
         * 记住我
         */
        private Boolean remeberMe = false;
    }

    @Getter
    @Setter
    public static class addOrUpdate {

        /**
         * id
         */
        private Long id;

        /**
         * 商铺id
         */
        @NotNull(message = "请填写商铺id")
        private Long storeId;

        /**
         * 用户名
         */
        @NotBlank(message = "请输入用户名")
        private String username;

        /**
         * 密码
         */
        @NotBlank(message = "请输入密码")
        private String password;
    }
}
